package com.zry.traced.presenter

import android.content.Intent
import android.view.View
import com.zry.traced.R
import com.zry.traced.ui.activity.BatchStorageActivity
import com.zry.traced.ui.activity.PutStorageActivity
import com.zry.traced.ui.activity.SectionNumberStorageActivity

class PutStoragePresenter(private val activity: PutStorageActivity) {

    fun putStorageHandlerClick(view: View) {
        when (view.id) {
            R.id.batchStorageBtn -> {
                val intent = Intent(activity, BatchStorageActivity::class.java)
                intent.putExtra("title", "批量入库")
                intent.putExtra("storeOrderBean", activity.storeOrderBean)
                activity.startActivity(intent)
            }
            R.id.sectionNumberBtn -> {
                val intent = Intent(activity, SectionNumberStorageActivity::class.java)
                intent.putExtra("title", "号段入库")
                intent.putExtra("storeOrderBean", activity.storeOrderBean)
                activity.startActivity(intent)
            }
        }
    }
}